# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=libxpm
pkgver=3.5.13
pkgrel=0
pkgdesc="X11 pixmap library"
url="http://xorg.freedesktop.org/"
arch="all"
license="custom:BELL"
options="!check"  # No test suite.
subpackages="$pkgname-dev $pkgname-doc"
makedepends="libxt-dev libxext-dev util-linux-dev util-macros"
source="https://www.x.org/releases/individual/lib/libXpm-$pkgver.tar.bz2"

builddir="$srcdir"/libXpm-$pkgver

build() {
	ac_cv_search_gettext=no \
	./configure \
		--build=$CBUILD \
		--host=$CHOST \
		--prefix=/usr \
		--sysconfdir=/etc
	make
}

package() {
	make DESTDIR="$pkgdir" install
	install -Dm644 COPYING "$pkgdir"/usr/share/licenses/$pkgname/COPYING
}
sha512sums="3b8f6e926272f39b1d95135c2274c00f5aaee1f9fb2ef79f71628df5edeb7ba20158819ef6a778101cc4092493a3b5b613c53634fdccadcc0fc85f0605e5e9a5  libXpm-3.5.13.tar.bz2"
